﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Windows.Forms;

namespace eTMS.Controls
{
    public class ComboBoxLanThi : ComboBox
    {
        protected override void OnVisibleChanged(EventArgs e)
        {
            SetSoLanThiToiDa();
        }
        public void SetSoLanThiToiDa()
        {
            this.DropDownStyle = ComboBoxStyle.DropDownList;
            this.DisplayMember = "Name";
            this.ValueMember = "ID";
            this.DataSource = eTMS.Commons.Common.GetLanThiDataTable();
        }
    }
}
